680548421 by 2023 A Beginners Guide

680548421 by 2023 A Beginners Guide

Author:2023 A Beginners Guide
Language: eng
Format: epub


Feature

Listing 8.5: Example of PCA feature extraction.

You can see that the transformed dataset (3 principal components) bare little resemblance to the source data.

Listing 8.6: Output of PCA feature extraction.

––––––––

8.5 Feature Importance

Bagged decision trees like Random Forest and Extra Trees can be used to estimate the importance of features. In the example below we construct a ExtraTreesClassifier classifier for the Pima Indians onset of diabetes dataset. You can learn more about the ExtraTreesClassifier in the scikit-learn API.

Listing 8.7: Example of feature importance.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.